How to convert array and sub array to collection in Laravel

join shbcf.ru